package po;

import java.io.Serializable;

public class BookInventoryPO implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private int bookID;
	private int totalQuantity;
	private int availableQuantity;
	
	public BookInventoryPO() {
		bookID = 0;
		totalQuantity = 0;
		availableQuantity = 0;
	}
	
	public BookInventoryPO(int id, int total, int available) {
		bookID = id;
		totalQuantity = total;
		availableQuantity = available;
	}
	
	public BookInventoryPO(int id, int total) {
		bookID = id;
		totalQuantity = total;
		availableQuantity = total;
	}
	
	public BookInventoryPO(BookInventoryPO bookInventoryPO) {
		bookID = bookInventoryPO.bookID;
		totalQuantity = bookInventoryPO.totalQuantity;
		availableQuantity = bookInventoryPO.availableQuantity;
	}
	
	@Override
	public String toString() {
		return "BookInventoryInfoPO [bookID=" + bookID + ", totalQuantity="
				+ totalQuantity + ", availableQuantity=" + availableQuantity
				+ "]";
	}
	
	public int getBookID() {
		return bookID;
	}
	
	public int getTotalQuantity() {
		return totalQuantity;
	}
	
	public int getAvailableQuantity() {
		return availableQuantity;
	}
	
	public void setBookID(int bookID) {
		this.bookID = bookID;
	}
	
	public void setTotalQuantity(int totalQuantity) {
		this.totalQuantity = totalQuantity;
	}
	
	public void setAvailableQuantity(int availableQuantity) {
		this.availableQuantity = availableQuantity;
	}

}
